<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>提交反馈</title>
  <link rel="shortcut icon" href="../rent.ico" type="image/x-icon" />
  <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap-grid.css" rel="stylesheet">
    <link rel="stylesheet" href="../public/libs/vant.css">
    <link rel="stylesheet" href="../public/css/shenqingtuikuan_buy.css">
  <style>
    header{
      background-color: #2db7f5;
      font-size: 20px;
      color: #fff;
    }
    .dot:hover {
      background-color: transparent;
    }

    .dot.tag {
      background-color: #979797;
    }
    main{
      text-align: center;
    }
    main>textarea{
      margin: 0 auto;
      margin-top: 20px;
      width: 95%;
      height: 400px;
      box-shadow: 1px 1px 5px #ccc;
      text-align: left;
    }
button {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80%;
      height: 48px;
      color: #fff;
      font-size: 18px;
      background-color: #2db7f5;
      border: none;
      border-radius: 25px;
    }
  </style>
</head>

<body>
  <div id="app">
    <header>
      <div class="header-top">
        <a onclick="javascript:window.history.back();">
          <img src="../public/img/fanhui_left.png" alt="">
        </a>
        <span>提交反馈</span>
      </div>
    </header>

    <main>
      <textarea name="" id="" cols="30" rows="10" v-model="text" placeholder="请将问题详细描述并反馈给我们，务必留下您的0Q或者手机，便于我们与您联系!      "></textarea>

    </main>

      <button @click="update">提交</button>

  </div>




  <script src="../public/libs/vue.min.js"></script>
  <!-- <script src="https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js"></script> -->
  <script src="../public/libs/jquery-3.4.1.min.js"></script>
<script src="../public/libs/jquery.cookie.js"></script>
<script src="../public/libs/md5.js"></script>
  <script src="../public/libs/vant.js"></script>
  <script src="../public/libs/app.js"></script>
  <script>

    var vm = new Vue({
      el: "#app",
      data: {
        yqm:"",
        text:"",
      },
      mounted:function(){
        this.yqm=$.cookie("yqm")
        // this.yqm="31tianTX621257d5"
      },
      methods:{
        update:function(){
          $.ajax({
            url: app.webUrl + '/guide/setfeedback',
            data: {
              // Accountid:this.Accountid,
              Accountid:3,
              guidetext:this.text,
              invCode:this.yqm,
            },
            type: 'post',
            success: function (ret) {
              if(ret.status==1){
                app.text_show("提交成功")
                setTimeout(() => {
                window.location.href="dating.html?&pz=";
                }, 1000);
              }
            }
          })
        }
      },

    })

  </script>
</body>

</html>